#!/usr/bin/env python
from lib.HandleMysql import *
import sys
reload(sys)
sys.setdefaultencoding('utf-8')

#mysql - stats
def set_stats_conn():    
    conn = HandleMysql('10.5.20.16','58885','ec_stat','L#c8UM5RGh5C','dbwww58com_online_revenue_stats')
    conn.connect()
    return conn
#mysql - dict
def set_dict_conn():    
    conn = HandleMysql('10.5.20.16','58885','ec_stat','L#c8UM5RGh5C','dbwww58com_base_dicts')
    conn.connect()
    return conn